package com.example.archive.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("archive_modification_requests")
public class ArchiveModificationRequest {
    @TableId(type = IdType.AUTO)
    private Integer modRequestId;
    
    private Integer archiveId;
    
    private Integer applicantId;
    
    private LocalDateTime applyTime;
    
    private String modifyContent;
    
    private String status; // pending, approved, rejected, completed
    
    private Integer approverId;
    
    private LocalDateTime approveTime;
    
    private String approveRemark;
    
    private Integer executorId;
    
    private LocalDateTime executeTime;
    
    private String executeRemark;
    
    private LocalDateTime createdAt;
    
    private LocalDateTime updatedAt;
    
    // 关联字段，不映射到数据库
    @TableField(exist = false)
    private String applicantName;
    
    @TableField(exist = false)
    private String approverName;
    
    @TableField(exist = false)
    private String executorName;
    
    @TableField(exist = false)
    private String archiveTitle;
} 